<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>添加商品小分类</title>
		<!-- Bootstrap core CSS -->
		<link href="asserts/css/bootstrap.min.css" th:href="@{/asserts/css/bootstrap.min.css}" rel="stylesheet">

		<!-- Custom styles for this template -->
		<link href="asserts/css/dashboard.css" th:href="@{/asserts/css/dashboard.css}" rel="stylesheet">

	</head>

	<body>
		<!-- 插入顶部部分topbar !-->
		<div th:replace="commons/bar::#topBar"></div>
		<div class="container-fluid">
			<div class="row">
				<!--插入左侧部分sidebar-->
				<div th:replace="commons/bar::#sidebar(activeUri='manage/admin')"></div>

				<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
					<form th:action="@{/manage/sbType}" method="post">
						<div class="form-group">
							<label for="Select1">大分类</label>
							<select class="form-control" id="Select1" name="superId">
								<option th:each="superType : ${superTypeList}"
										th:value="${superType.ID}" th:text="${superType.typeName}">
								</option>
							</select>
						</div>

						<div class="form-group">
							<label for="Textarea1">小分类名称</label>
							<textarea name="typeName" class="form-control" id="Textarea1" rows="3"></textarea>
						</div>
						<button type="submit" class="btn btn-primary"  >添 加</button>
						<a  class="btn btn-secondary" th:href="@{/manage/subTypes}">返 回</a>
					</form>
				</main>
			</div>
		</div>

		<!-- Bootstrap core JavaScript
    ================================================== -->
		<!-- Placed at the end of the document so the pages load faster -->
		<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js" th:src="@{/asserts/js/jquery-3.2.1.slim.min.js}" ></script>
		<script type="text/javascript" src="asserts/js/popper.min.js" th:src="@{/asserts/js/popper.min.js}" ></script>
		<script type="text/javascript" src="asserts/js/bootstrap.min.js" th:src="@{/asserts/js/bootstrap.min.js}" ></script>

		<!-- Icons -->
		<script type="text/javascript" src="asserts/js/feather.min.js" th:src="@{/asserts/js/feather.min.js}" ></script>
		<script>
			feather.replace()
		</script>


	</body>

</html>